<?php
/**
 * Created by PhpStorm.
 * User: renshan
 * Date: 16-6-12
 * Time: 上午10:07
 */
return [
    'AcmBundleIndex' =>
        [
            'route' => '/{name}',
            'defaults' => [
                'controller' => 'App\AcmController\Controller\IndexController',
                'action'     => 'index'
            ],
            'requirements' => [
                'name' => '\w+',
            ],
            'methods' => ['get']
        ],
    'AcmBundleUser' =>
        [
            'route' => '/user/{name}',
            'defaults' => [
                'controller' => 'App\AcmController\Controller\IndexController',
                'action'     => 'user'
            ],
            'requirements' => [
                'name' => '\w{6,16}',
            ],
            'methods' => ['get']
        ],
    'AcmBundleUser1' =>
        [
            'route' => '/user?name={name}&gender={gender}',
            'defaults' => [
                'controller' => 'App\AcmController\Controller\IndexController',
                'action'     => 'user'
            ],
            'requirements' => [
                'name' => '\w{6,16}',
            ],
            'methods' => ['get']
        ]
];